class Siteadmin::FamiliesController < ApplicationController
	before_filter :require_admin
	load_and_authorize_resource :through => :profile

	active_scaffold :families do |config|
		config.create.columns.exclude :profile
		config.update.columns.exclude :profile

		config.columns[:relation].label = "ความเกี่ยวข้อง"

		config.list.columns = [:relation, :name, :lastname, :occupation, :position]
	end

end
